<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Untitled Document</title>
        <script type="text/javascript" src="../../js-debug/jquery/jquery.js"></script>
        <script type="text/javascript" src="../../js-debug/jqueryui/jquery-ui.js"></script>
        <script type="text/javascript" src="../../js-debug/ctp/public/ctp.core.js"></script>
		<script type='text/javascript' src='../../js-debug/ctp/public/ctp.base.js'></script> 
		<script type='text/javascript' src='../../js-debug/ctp/public/ctp.ui.component.js'></script>
		<script type="text/javascript" src="../../js-debug/ctp/public/jsextend.js">
        </script>
        <script type="text/javascript" src="../../js-debug/ctp/statusbar/ctp.ui.statusbar.js">
        </script>       
        <script type="text/javascript" src="../../js-debug/ctp/data/ctp.data.js">
        </script>
		<link href="../../css-debug/statusbar.css" rel="stylesheet" type="text/css"/>
	    <script>
	    	var CTP_WEB_FULLPATH="../../";
	    	var panel8;
        	//ctp.core.log.lvl=ctp.core.loglvl.obj;
			$(document).ready(function(){ 		
			//ss=new ctp.data.storeset({data:data,stores:[{id:"info",keyField:"ID"},{id:"oldData",url:"data.json"}]});	                 
 			var store = new ctp.data.storeset({
                    id: 'store',
                    url:'store.js',
                    stores:[
                    		{id:"storeId3",
                    		 adapter:{
                    		 			root:"r1",//默认不输入时为根节点
                    		 			keyField:"k1",//主键字段
                    		 			totalNumField:"",//总记录数字段
                    		 			//默认不输入则不做任何映射转换
                    		 			fields:[
                    						{id:"field1",dataField:"df",dataType:"",dataFormat:"",defaultVal:"" },
                    			  			{id:"field2",dataField:"df",dataType:"",dataFormat:"",defaultVal:"" }
                    	   		  			]
                    				}
                    		},
                    		{id:"tid2"//,
                    		 //adapter:adapter2
                    		}
                    ],                                        
                    data:[{
        				"storeId3": {
        				"totalNum": "",
        				"data": [{
        					"key1": "value1_1",
        					"key2": "value1_2",
        					"key3":[{"key31":"value1_3"}]
        				}, {
        					"key1": "value2_1",
        					"key2": "value2_2"
        				}]
        			},
        			"storeId4": {
        				"totalNum": "",
        				"data": [{
        					"key1": "value1_1",
        					"key2": "value1_2"
        				}, {
        					"key1": "value2_1",
        					"key2": "value2_2"
        				}]
        			}
            		}]
                });	
			//store.load();
 			store.getStore("storeId1");
 			store.register("storeId3",{"id3":"id33"});
 			store.unRegister("storeId3");
 			
 			store.isExist("12312");
            });
        </script>
    </head>
    <BODY>
    	<div id="b">abc</div>
    	<b>ctp.data实例</b><hr/><br/>
</BODY>
</html>